<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HRutasGestion0.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="HRutasGestion0" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Src="../UserControls/Fecha.ascx" TagName="Fecha" TagPrefix="uc1" %>

<asp:Content ID="Content1"  ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center;">
        <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
        <table class="tablaForm" style="width: 550px" border="0">
            <tr>
                <td class="tdLogistica" colspan="2">
                    Gesti&oacute;n de Hojas de Ruta</td>
            </tr>
            <tr>
                <td class="tdLiteral" colspan="2" style="text-align: center">
                    <asp:Label ID="lblAccion" runat="server" CssClass="lblAccion">Acci&oacute;n</asp:Label>&nbsp;</td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 30%; text-align: right">
                    <asp:Label ID="Label1" runat="server" CssClass="label" Text="Planilla Nro.:"></asp:Label></td>
                <td class="tdForm" style="width: 70%; text-align: left">
                    <asp:TextBox ID="txtIdHRuta" runat="server" Columns="7" MaxLength="7" Width="65px" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="lblFecIng" runat="server" CssClass="label" Text="Fecha:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <uc1:Fecha ID="Fecha" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="Label9" runat="server" CssClass="label" Text="Estado:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtEstado" runat="server" ForeColor="#00C000" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="lblNombre" runat="server" CssClass="label" Text="Patente:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    &nbsp;<asp:DropDownList ID="cboRodados" runat="server" AutoPostBack="True" Width="100px" OnSelectedIndexChanged="cboRodados_SelectedIndexChanged">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right; height: 23px;">
                    <asp:Label ID="Label2" runat="server" CssClass="label" Text="Tipo:"></asp:Label></td>
                <td class="tdForm" style="text-align: left; height: 23px;">
                    <asp:TextBox ID="txtTipo" runat="server" CssClass="cuadrotxt100" MaxLength="50" Width="80%" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="height: 23px; text-align: right">
                    <asp:Label ID="Label5" runat="server" CssClass="label" Text="Chofer:"></asp:Label></td>
                <td class="tdForm" style="height: 23px; text-align: left">
                    <asp:DropDownList ID="cboChoferes" runat="server" Width="60%">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="lblTe1" runat="server" CssClass="label" Text="Salida desde:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtOrigen" runat="server" MaxLength="30" Columns="30"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right;">
                    <asp:Label ID="Label3" runat="server" CssClass="label" Text="Hora de Partida:"></asp:Label></td>
                <td class="tdForm" style="text-align: left;">
                    <asp:TextBox ID="txtHoraSalida" runat="server" Columns="4" MaxLength="4" Width="60px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: center; font-weight: bold;" colspan="2">
                    Totales del Viaje</td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="Label4" runat="server" CssClass="label" Text="Remitos:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtItems" runat="server" CssClass="cuadrotxt" Width="60px" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="Label6" runat="server" CssClass="label" Text="Bultos:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtBultos" runat="server" CssClass="cuadrotxt" Width="60px" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="Label7" runat="server" CssClass="label" Text="Kilos:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtKilos" runat="server" CssClass="cuadrotxt"
                        Width="100px" ReadOnly="True">0</asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="Label8" runat="server" CssClass="label" Text="Por Cobrar:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtPorCobrar" runat="server" CssClass="cuadrotxt" ReadOnly="True"
                        Width="100px">0</asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="Label10" runat="server" CssClass="label" Text="Entregar:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtEntregar" runat="server" CssClass="cuadrotxt" ReadOnly="True" Width="60px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="Label11" runat="server" CssClass="label" Text="Imputar:"></asp:Label></td>
                <td class="tdForm" style="text-align: left">
                    <asp:TextBox ID="txtImputar" runat="server" CssClass="cuadrotxt" ReadOnly="True" Width="60px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="text-align: right">
                    <asp:Label ID="lblObs" runat="server" CssClass="label" Text="Comentarios:"></asp:Label></td>
                <td class="tdForm" colspan="1" style="text-align: left">
                    <asp:TextBox ID="txtObs" runat="server" CssClass="cuadrotxt100" Rows="3" TextMode="MultiLine" MaxLength="250"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdBotones" colspan="2">
                    <asp:Button ID="btnGuardar" runat="server" CssClass="Boton" Text="Guardar" Width="75px" OnClick="btnGuardar_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnAgregar" runat="server" CssClass="Boton" Text="Agregar  P&aacute;gina" Width="95px" OnClick="btnAgregar_Click" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnActivar" runat="server" CssClass="Boton" Text="Activar" Width="75px" OnClick="btnActivar_Click" />
                    &nbsp;
                    <asp:Button ID="btnCancelar" runat="server" CssClass="Boton" Text="Cancelar" Width="75px" OnClick="btnCancelar_Click" />&nbsp;
                    </td>
            </tr>
            <tr id="trPaginas1" runat="server">
            <td class="tdTit" colspan="6" style="width: 100%; text-align: center">
                PAGINAS</td>
        </tr>
        <tr id="trPaginas2" runat="server">
            <td class="tdForm" colspan="6" style="width: 100%; text-align: center">
                <asp:GridView ID="gvPaginas" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                                CellPadding="3" GridLines="Vertical" 
                                DataKeyNames="Pagina"
                                OnRowDataBound="gvPaginas_RowDataBound" 
                                OnSelectedIndexChanged="gvPaginas_SelectedIndexChanged"
                                OnRowDeleting="gvPaginas_RowDeleting"
                                OnPageIndexChanging="gvPaginas_PageIndexChanging" Width="100%">
                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <Columns>
                                    <asp:TemplateField HeaderText="P&#225;gina">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Pagina" runat="server" Text='<%# Bind("Pagina") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Destino">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Destino" runat="server" Text='<%# Bind("Destino") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Remitos">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Remitos" runat="server" Text='<%# Bind("Items") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Bultos">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Bultos" runat="server" Text='<%# Bind("Bultos") %>'></asp:Label>
                                        </ItemTemplate>
                                         <ItemStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Kilos">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Kilos" runat="server" Text='<%# Bind("Kilos") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Entregar">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Entregar" runat="server" Text='<%# Bind("Entregar") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Imputar">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Imputar" runat="server" Text='<%# Bind("Imputar") %>'></asp:Label>
                                        </ItemTemplate>
                                         <ItemStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                    <asp:TemplateField ShowHeader="False">
                                        <HeaderStyle ForeColor="White"></HeaderStyle>
                                        <ItemTemplate>
                                            <asp:LinkButton runat="server" Text="Seleccionar" CommandName="Select" CausesValidation="False" id="LinkButton2"></asp:LinkButton>
                                        </ItemTemplate>
                                        </asp:TemplateField>
                                    <asp:CommandField ShowDeleteButton="True"  DeleteText="Eliminar">
                                        <ItemStyle ForeColor="Red" />
                                    </asp:CommandField>
                                </Columns>
                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center" />
                                <EditRowStyle Wrap="True" />
                                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#325FB9" Font-Bold="True" Font-Names="Arial Rounded MT Bold"
                                    ForeColor="White" />
                                <AlternatingRowStyle BackColor="Gainsboro" />
                            </asp:GridView>
            </td>
        </tr>
        </table>
    </div>
    <asp:Panel ID="pnlMensaje" runat="server" CssClass="tdBotones" Style="display: none"
        Width="233px">
        <div style="background-image: none; background-color: transparent; text-align: center">
            <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
            <br />
            <br />
            <asp:Button ID="btnMensaje" runat="server" Text="OK" Width="64px" />
        </div>
    </asp:Panel>
    <table id="tblMensaje" runat="server" border="0" style="width: 0px; height: 0px">
        <tr>
            <td style="width: 100px; height: 18px">
                <asp:Button ID="btnMalMensaje" runat="server" Height="0px" Text="Button" Width="0px" />
            </td>
        </tr>
    </table>
    <cc1:ModalPopupExtender ID="mpeMensaje" runat="server" BackgroundCssClass="modalBackground"
        DropShadow="true" OkControlID="btnMensaje" PopupControlID="pnlMensaje" TargetControlID="btnMalMensaje">
    </cc1:ModalPopupExtender>  
</asp:Content>
    
